package com.patrol.logisticsmanage.ui.appear.model;

import org.jaaksi.pickerview.dataset.OptionDataSet;

import java.util.ArrayList;
import java.util.List;

/**
 * 营区//证件类型
 */
public class SubCamp implements OptionDataSet {
    private String value;
    private String text;
    private String title;
    private List<Canteen> canteens;

    public List<Canteen> getCanteens() {
        return canteens==null?new ArrayList<>():canteens;
    }

    public void setCanteens(List<Canteen> canteens) {
        this.canteens = canteens;
    }

    @Override
    public CharSequence getCharSequence() {
        return title;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public List<? extends OptionDataSet> getSubs() {
        return canteens;
    }
}
